import GlobalService from '../global/GlobalService'

let instance = null

class Service extends GlobalService {
  constructor() {
    super()
    return instance || this
  }

  static getInstance() {
    if (!instance) {
      instance = new Service()
    }
    return instance
  }

  getList = async (query = {}) => {
    return this.get(`/taskSupervise/queryTaskOvertimeList`, query)
  }

  updateReason = async (model) => {
    return this.post(`/taskSupervise/taskOvertimeFeedback`, model)
  }
}

export default Service.getInstance()
